package com.zking.dao.mapper;

import com.zking.dao.domain.SysRoleResources;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

@Repository
public interface SysRoleResourcesMapper extends Mapper<SysRoleResources> {
    @Insert("insert into sys_role_resources values (null,#{roleId},#{resourcesId})")
    int insert (SysRoleResources sysRoleResources);

    @Delete("delete from sys_role_resources where role_id=#{roleId} and resources_id=#{resourcesId}")
    int delete (SysRoleResources sysRoleResources);
}